/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* 主要内容区域 */
.content {
    background-color: white;
    width: 900px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.img{
    width: 100%;
    height: 100%;
}

/* 评论区样式 */
.comment-section {
    background-color: white;
    width: 900px;
    padding: 20px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 20px;
    color: #555;
}

/* 单条评论样式 */
.parent-comment,
.child-comment {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 用户信息 */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: bold;
    color: #007BFF;
    text-decoration: none;
}

.username:hover {
    text-decoration: underline;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

/* 按钮样式 */
.function {
    text-align: right;
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
}

button:hover {
    background-color: #0056b3;
}

.like-comment {
    background-color: transparent;
    color: #007BFF;
    border: 1px solid #007BFF;
}

.like-comment:hover {
    background-color: #007BFF;
    color: white;
}

/* 回复框 */
.reply-box {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.reply-input {
    flex: 1;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.reply-btn {
    margin-left: 5px;
}

/* 子级评论 */
.child-comments {
    margin-left: 40px;
    border-left: 3px solid #ddd;
    padding-left: 10px;
}

.show-replies {
    background-color: #f0f0f0;
    color: #333;
    border: none;
    padding: 5px;
    margin-top: 5px;
}

.show-replies:hover {
    background-color: #ddd;
}
